package com.zmc.lostfound.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.lostfound.common.utils.Result;
import com.zmc.lostfound.file.entity.FileEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author ZMC
 * @description 文件管理业务接口
 * @email 2869581855@qq.com
 * @date 2023-07-05 15:30:10
 */
public interface FileService extends IService<FileEntity> {

    /**
     * 获取文件上传签名
     *
     * @return Result
     */
    Result getPolicy();

    /**
     * 上传图片或文档
     *
     * @param file 文件
     * @return Result
     */
    Result upLoadFile(MultipartFile file);

}

